package com.myjoje.bean.system;

import com.myjoje.base.BaseUuidBean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 部门表
 */
@Entity
@Table(name = "sy_dept")
public class DeptBean extends BaseUuidBean {

    @Column(columnDefinition = "varchar(255) COMMENT '部门名称'")
    private String name;

    @Column(columnDefinition = "LONGTEXT COMMENT '部门描述，可以是富文本'")
    private String description;

    //管理人的ids
    @Transient
    private String adminIds;

    @Transient
    private String adminNames;

    //部门用户数量
    @Transient
    private String userCount;


    public String getAdminIds() {
        return adminIds;
    }

    public void setAdminIds(String adminIds) {
        this.adminIds = adminIds;
    }

    public String getAdminNames() {
        return adminNames;
    }

    public void setAdminNames(String adminNames) {
        this.adminNames = adminNames;
    }

    public String getUserCount() {
        return userCount;
    }

    public void setUserCount(String userCount) {
        this.userCount = userCount;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
